package com.example.sunsg.okhttptest.bean;

/**
 * Created by sunsg on 15/9/22.
 */
public class Constant {

    /**KEY response range  判断是否支持断点续传  在headers里 判断有没有此字段*/
    public static final String KEY_RESPONSE_ACCEPT_RANGES = "Accept-Ranges";
    /**VAULE response range  判断是否支持断点续传 在 headers里 判断 ‘Accept-Ranges’字段 的values*/
    public static final String VALUE_RESPONSE_ACCEPT_RANGES = "bytes";
    /**KEY request range 网络请求添加断点续传key*/
    public static final String KEY_REQUEST_RANGE = "Range";
    /**VALUES request range 网络请求添加断点续传vaule*/
    public static final String VALUE_REQUEST_RANGE = "bytes=%s-%s";//前面一个 ％s 是开始大小 后面一个是总大小 单位byte
    /**VAULE response Content-Length  数据大小*/
    public static final String KEY_RESPONSE_CONTENT_LENGTH = "Content-Length";

    /**===========================================URL===============================================*/
    /**app token*/
    public static String URL_TOKEN = "http://api.breadtrip.com/android/bdchannel/get_access_token/";
    /** login */
    public static String URL_LOGIN = "http://api.breadtrip.com/accounts/login/";
    /** 创建新游记 */
    public static String URL_CREATE_NEW_TRIP = "http://api.breadtrip.com/v2/new_trip/";

    /** 添加足迹 */
    public static String URL_ADD_TRACK = "http://api.breadtrip.com/trips/%s/add_waypoint/";

    /** 优酷app下载链接*/
    public static String URL_DOWN_YOUKU_APK_URL = "http://dl.m.cc.youku.com/android/phone/Youku_Phone_youkuweb.apk";
    /** 淘宝app下载链接*/
    public static String URL_DOWN_TAOBAO_APK_URL = "http://download.alicdn.com/wireless/taobao4android/latest/702757.apk";


}
